package controller.util;

import java.io.IOException;

import javax.servlet.Servlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

	/**
	 * @author Mauricio-Sennos
	 * Classe com mecanismo de efetuar logoff.
	 * Baseado na arquitetura J2EE
	 */
	public class LogoffServlet extends HttpServlet implements Servlet {


		private static final long serialVersionUID = 8695304924320212626L;

		@Override
		protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
			req.getSession().invalidate();
			resp.sendRedirect("/simos/autenticador.jsp");

		}

	}


